package com._21cn.cms.site.entity;

import java.io.Serializable;
import java.util.Date;

public class Channel implements Serializable {
	private static final long serialVersionUID = -1L;	
	
	private Integer id = 0;
	private Integer siteId = 0;
	private String name;
	private String code;
	private String host;
	private String path;
	private String url;
	private String metaKeyword;
	private String metaDescription;
	private String memo;
	private Integer status;
	private Integer indexTemplateId = 0;
	private java.util.Date createTime = new Date();
	private Integer createUserId;
	private java.util.Date modifyTime = new Date();
	private Integer modifyUserId;
    private String siteName = "";
    private Site site = new Site();
    private String templateName = "";

    public String getTemplateName() {
        return this.templateName;
    }

    public void setTemplateName(String templateName) {
        this.templateName = templateName;
    }

    public String getSiteName() {
        return siteName;
    }

    public void setSiteName(String siteName) {
        this.siteName = siteName;
    }

    public Site getSite() {
        return site;
    }

    public void setSite(Site site) {
        this.site = site;
    }

    public void setId(Integer id) {
        this.id = id;  
    }        
	
    public Integer getId() {  
        return this.id;  
    }  
    public void setSiteId(Integer siteId) {  
        this.siteId = siteId;  
    }        
	
    public Integer getSiteId() {
        if( site!=null && site.getId()>0){
            return site.getId();
        }
        return this.siteId;  
    }  
    public void setName(String name) {  
        this.name = name;  
    }        
	
    public String getName() {  
        return this.name;  
    }  
    public void setCode(String code) {  
        this.code = code;  
    }        
	
    public String getCode() {  
        return this.code;  
    }  
    public void setHost(String host) {  
        this.host = host;  
    }        
	
    public String getHost() {  
        return this.host;  
    }  
    public void setPath(String path) {  
        this.path = path;  
    }        
	
    public String getPath() {  
        return this.path;  
    }  
    public void setUrl(String url) {  
        this.url = url;  
    }        
	
    public String getUrl() {  
        return this.url;  
    }  
    public void setMetaKeyword(String metaKeyword) {  
        this.metaKeyword = metaKeyword;  
    }        
	
    public String getMetaKeyword() {  
        return this.metaKeyword;  
    }  
    public void setMetaDescription(String metaDescription) {  
        this.metaDescription = metaDescription;  
    }        
	
    public String getMetaDescription() {  
        return this.metaDescription;  
    }  
    public void setMemo(String memo) {  
        this.memo = memo;  
    }        
	
    public String getMemo() {  
        return this.memo;  
    }  
    public void setStatus(Integer status) {  
        this.status = status;  
    }        
	
    public Integer getStatus() {  
        return this.status;  
    }  
    public void setIndexTemplateId(Integer indexTemplateId) {  
        this.indexTemplateId = indexTemplateId;  
    }        
	
    public Integer getIndexTemplateId() {  
        return this.indexTemplateId;  
    }  
    public void setCreateTime(java.util.Date createTime) {  
        this.createTime = createTime;  
    }        
	
    public java.util.Date getCreateTime() {  
        return this.createTime;  
    }  
    public void setCreateUserId(Integer createUserId) {  
        this.createUserId = createUserId;  
    }        
	
    public Integer getCreateUserId() {  
        return this.createUserId;  
    }  
    public void setModifyTime(java.util.Date modifyTime) {  
        this.modifyTime = modifyTime;  
    }        
	
    public java.util.Date getModifyTime() {  
        return this.modifyTime;  
    }  
    public void setModifyUserId(Integer modifyUserId) {  
        this.modifyUserId = modifyUserId;  
    }        
	
    public Integer getModifyUserId() {  
        return this.modifyUserId;  
    }  
}